import {
  get,
  post,
  reqDelete
} from '@/utils/axios'

// 列表
export function listYsDepartmentPage(params) {
  return post('/ysDepartment/listYsDepartmentPage', params)
}
// 删除
export function removeYsDepartmentById(params) {
  return reqDelete('/ysDepartment/removeYsDepartmentById', params)
}

// 新增或编辑
export function saveOrUpdateYsDepartment(params) {
  return post('/ysDepartment/saveOrUpdateYsDepartment', params)
}

// 下载模板
export function exportExcelYsDepartmentDemo(params) {
  return post('/ysDepartment/exportExcelYsDepartmentDemo', params, {
    responseType: 'blob'
  })
}

// 导出
export function exportExcelYsDepartment(params) {
  return post('/ysDepartment/exportExcelYsDepartment', params, {
    responseType: 'blob'
  })
}
// 导入
export function importExcelYsDepartment(params) {
  return post('/ysDepartment/importExcelYsDepartment', params, {
    headers: { 'Content-Type': 'multipart/form-data' },
    responseType: 'blob'
  })
}
